package online.heycm.rbac.param.user;

import lombok.Data;
import online.heycm.platform.web.common.annotation.EncryptField;
import online.heycm.rbac.common.entity.PageReq;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @author hey
 * @version 1.0
 * @date 2024/1/19 14:26
 */
@Data
public class UserPageReq implements PageReq, Serializable {

    private static final long serialVersionUID = 4985196489411755734L;

    private int page = 1;

    private int size = 10;

    /**
     * 用户姓名
     */
    @EncryptField
    private String username;

    /**
     * 用户手机
     */
    @EncryptField
    private String phone;

    /**
     * 用户身份证
     */
    @EncryptField
    private String idCard;

    /**
     * 用户状态：0-禁用 1-正常
     */
    @Max(1)
    @Min(0)
    private Integer sts;

    /**
     * 角色ID
     */
    @Min(1000)
    private Integer roleId;
}
